package com.k2.gulimall.product.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.DeserializationFeature;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
//@JsonIgnoreProperties(ignoreUnknown = true)

//二级分类vo
public class CateLog2Vo {
    private String catalog1Id;//一级父分类id
    private List<CateLog3Vo> catalog3List;//三级子分类
    private String id;
    private String name;

    /**
     *                     "catalog2Id":"1",
     *                     "id":"1",
     *                     "name":"电子书"\
     *                     三级分类vo
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CateLog3Vo{
        private String catalog2Id;//父分类，二级分类id
        private String id;
        private String name;

    }




}
